import styled from 'styled-components'
import piclogo from '../../static/images/logo.png'
export const HeaderBox = styled.div`
    position:relative
    width:100%;
    height:58px;
    border-bottom:1px solid #f0f0f0;
` 
export const Logo = styled.a`
    display:block;
    position:absolute;
    top:0;
    left:0;
    background:url(${piclogo});
    height:58px;
    width:100px;
    background-size:contain;
`
export const Nav = styled.div`
    height:100%;
    width:960px;
    margin:0 auto;
`
export const NavList = styled.div`
    line-height:56px;
    font-size:17px;
    padding:0 15px;
    color:#333;
    &.left{
        float:left;
    }
    &.right{
        float:right;
        color:#969696;
    }

`
export const NavSearch = styled.input.attrs({
    placeholder:'搜索'
})`
    width:200px;
    height:38px;
    background:#eee;
    border-radius:19px;
    margin-top:9px;
    padding:0 35px 0 20px;
    margin-left:20px;
    box-sizing:border-box;
    outline:none;
    border:none;
    font-size:14px;
    &::placeholder{
        color:#999;
    }
    &.foucs{
        width:270px;
    }
`
export const Addition = styled.div`
    position:absolute;
    top:0;
    right:0;
    height:56px;
`
export const Button = styled.div`
    float:right;
    height:38px;
    line-height:38px;
    margin-top:9px;
    padding:0 20px;
    border:1px solid #ec6149;
    border-radius:19px;
    margin-right:20px;
    &.reg{
        color:#ec6149;
    }
    &.writing{
        color:#fff;
        background:#ec6149;
    }
`
export const SearchBox = styled.div`
    float:left;
    position:relative;
    .siler-enter{
        width:200px;
        transition:all 0.3s ease-out;
    }
    .siler-enter-active{
        width:270px;
    }
    .siler-exit{
        transition:all 0.3s ease-out;
    }
    .siler-exit-active{
        width:200px;
    }
    .icon{
        position:absolute;
        right:5px;
        bottom:5px;
        width:30px;
        line-height:30px;
        border-radius:15px;
        text-align:center;
        &.foucs{
            background:red;
            color:#fff;
        }
    }
`
export const SearchInfo = styled.div`
    position:absolute;
    top:58px;
    left:0;
    width:240px;
    padding:0px 20px 20px 20px;
    margin-left:20px;
    box-shadow:0 0 8px rgba(0,0,0,.2);
`
export const SearchTitle = styled.div`
    margin-top:20px;
    line-height:20px;
    font-size:14px;
    color:#969696;
`
export const SearchInfoSwitch = styled.span`
    float:right;
    font-size:13px;
    .iconfont{
        background:none;
        display:block;
        float:left;
        margin-right:3px;
        transition:all 1s ease-in;
        transform-origin:center center;
    }
`
export const SearchList = styled.div`
    margin-top:10px;
    margin-left:10px
`
export const SearchItem = styled.a`
    display:block;
    float:left;
    line-height:20px;
    padding:0 5px;
    font-size:12px;
    border:1px solid #ddd;
    border-radius:2px;
    color:#333;
    margin-right:10px;
    margin-top:8px;
`
